package com.sc.nft.entity.req;


import com.sc.nft.enums.EcologyRewardsType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
public class AddSmeltingRewardsConfRequest {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("奖励周期")
    @NotNull(message = "奖励周期不能为空")
    @Max(value =9999999,message = "奖励周期最大值不能超过9999999")
    @Min(value = 1,message = "奖励周期最小值不能低于1")
    private Integer rewardsCycle;

    @ApiModelProperty("奖励类型:  ECOLOGY_POINTS:生态积分  EQUITY_PROPS:权益道具")
    @NotNull(message = "奖励类型不能为空")
    private EcologyRewardsType rewardsType;

    @ApiModelProperty("奖励id")
    private Long linkId;

    @ApiModelProperty("奖励名称")
    private String linkName;

    @ApiModelProperty("奖励数量")
    @NotNull(message = "奖励数量不能为空")
    @DecimalMin(value = "0.01",message = "奖励数量不能小于0.01")
    @DecimalMax(value = "999999.99",message = "奖励数量不能大于999999.99")
    private BigDecimal linkCount;

    @ApiModelProperty("奖励图片")
    private String linkImage;

}
